﻿#ifndef LOVEMAINWINDOW_H
#define LOVEMAINWINDOW_H

#include <QMainWindow>
#include<QMediaPlayer>
#include<QFileDialog>
#include<QUrl>
#include"qmyvideowidget.h"
#include<QWidget>
#include<QGraphicsDropShadowEffect>
namespace Ui {
class loveMainWindow;
}

class loveMainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QMediaPlayer *player;
    QString durationTime;
    QString positionTime;
    void iniUI();
    void addShadow(QWidget&);
private slots:
    void onStateChanged(QMediaPlayer::State state);
    void onDurationChanged(qint64 duration);
    void onPositionChanged(qint64 position);

    void on_btnAdd_clicked();

    void on_btnPlay_clicked();

    void on_btnPause_clicked();

    void on_btnStop_clicked();

    void on_pushButton_clicked();

    void on_btnSound_clicked();

    void on_sliderVolumn_valueChanged(int value);

public:
    explicit loveMainWindow(QWidget *parent = 0);
    ~loveMainWindow();

private:
    Ui::loveMainWindow *ui;
};

#endif // LOVEMAINWINDOW_H
